{# A DNS record's form (dialog body): a new one, or one's edit (``editing``) holding ``values`` (its type, TTL and priority kept as they are); a 422 re-renders it with ``errors``. An A record left without a value points at the server this project deploys to. #} {% from "components/macros/layout.html" import dialog_title %} {% from "components/macros/form.html" import field, form_footer, number_input, select, text_input %} {% from "components/macros/feedback.html" import error_banner %} {{ dialog_title("Edit record" if editing else "Add a record", domain) }}